From: Ian Campbell Date: Wed, 19 Dec 2012 14:16:30 +0000 (+0000) Subject: xen: arm: mark early_panic as a noreturn function X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7490 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=3eab3e1de526c3fcf9ba1317de68d05812e1c623;p=xen.git xen: arm: mark early_panic as a noreturn function Otherwise gcc complains about variables being used when not initialised when in fact that point is never reached. There aren't any instances of this in tree right now, I noticed this while developing another patch. Signed-off-by: Ian Campbell Acked-by: Tim Deegan Committed-by: Ian Campbell --- diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h index f45f21e655..a770d4af73 100644 --- a/xen/include/asm-arm/early_printk.h +++ b/xen/include/asm-arm/early_printk.h @@ -15,7 +15,7 @@ #ifdef EARLY_UART_ADDRESS void early_printk(const char *fmt, ...); -void early_panic(const char *fmt, ...); +void early_panic(const char *fmt, ...) __attribute__((noreturn)); #else